package com.yanqu.road.entity.wingroom.message;

import com.yanqu.road.entity.DataObject;

/**
 * @author ：zfr
 * @date ：2022/3/17 23:30
 */
public class GuestMessage extends DataObject {
    private long userId;
    private long messageId;
    private int noteStyle;
    private boolean isTop;
    private String content;
    private long guestServerId;
    private long guestUserId;
    private long messageTime;
    private boolean isDelete;
    private boolean isRead;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getMessageId() {
        return messageId;
    }

    public void setMessageId(long messageId) {
        this.messageId = messageId;
    }

    public int getNoteStyle() {
        return noteStyle;
    }

    public void setNoteStyle(int noteStyle) {
        this.noteStyle = noteStyle;
    }

    public boolean isTop() {
        return isTop;
    }

    public void setTop(boolean top) {
        if (isTop != top) {
            isTop = top;
            setUpdateOption();
        }
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getGuestServerId() {
        return guestServerId;
    }

    public void setGuestServerId(long guestServerId) {
        this.guestServerId = guestServerId;
    }

    public long getGuestUserId() {
        return guestUserId;
    }

    public void setGuestUserId(long guestUserId) {
        this.guestUserId = guestUserId;
    }

    public long getMessageTime() {
        return messageTime;
    }

    public void setMessageTime(long messageTime) {
        this.messageTime = messageTime;
    }

    public boolean isDelete() {
        return isDelete;
    }

    public void setDelete(boolean delete) {
        if (isDelete != delete) {
            isDelete = delete;
            setUpdateOption();
        }
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        if (isRead != read) {
            isRead = read;
            setUpdateOption();
        }
    }
}
